Tests\Module\Checkout\CheckoutServiceTest S

Total Complexity 33
Dependencies 10
Dependents 0
Total lines 296
Lines of code 204
Logical lines of code 125
Comment lines 0
Methods 33
Properties 8

Methods 33

Method Rating Maintainability Complexity Lines of code
createCheckoutServiceMock()
S
57 1 18
testIsPickupPointOrderWhenItIsInternal()
S
68 1 7
testAreBlocksUsedInCheckoutAutomaticDetectionWithBlock()
S
71 1 6
testAreBlocksUsedInCheckoutClassicDetection()
S
73 1 5
testAreBlocksUsedInCheckoutBlockDetection()
S
73 1 5
testGetCustomerCountryWhenCustomerShippingCountryAndCustomerBillingCountryAreNull()
S
70 1 6
testGetCustomerCountryWhenCustomerShippingCountryIsNull()
S
68 1 7
testGetCustomerCountryWhenCustomerShippingCountryIsNotNull()
S
70 1 6
testIsCarDeliveryOrderWithEmptyChosenMethod()
S
73 1 5
testIsCarDeliveryOrderWithNoChosenMethod()
S
73 1 5
testIsCarDeliveryOrderWithNonCarDelivery()
S
70 1 6
testIsCarDeliveryOrderWithCarDelivery()
S
70 1 6
testIsHomeDeliveryOrderWithEmptyChosenMethod()
S
73 1 5
testIsHomeDeliveryOrderWithNoChosenMethod()
S
73 1 5
testIsHomeDeliveryOrderWithNonHomeDelivery()
S
70 1 6
testIsHomeDeliveryOrderWithHomeDelivery()
S
70 1 6
testIsPickupPointOrderWhenItIs()
S
68 1 7
testCalculateShippingAndGetOptionIdReturnsEmptyStringWhenNoShippingRatesExists()
S
73 1 5
testIsPickupPointOrderWhenItIsNot()
S
68 1 7
testIsPickupPointOrderWhenNoMethod()
S
71 1 6
testGetCarrierIdFromPacketeryShippingMethod()
S
66 1 10
testGetCarrierIdFromShippingMethodEmpty()
S
77 1 4
testGetCarrierIdFromShippingMethodPacketery()
S
73 1 5
testGetCarrierIdFromShippingMethodNonPacketery()
S
77 1 4
testIsPacketeryShippingMethodReturnsTrueWhenGivenValidOptionId()
S
73 1 5
testIsPacketeryShippingMethodReturnsFalseWhenGivenInvalidOptionId()
S
73 1 5
testGetShippingMethodOptionIdWithEmptyValue()
S
76 1 4
testGetShippingMethodOptionIdWithValueContainingPrefix()
S
70 1 6
testGetShippingMethodOptionIdWithValueNotContainingPrefix()
S
73 1 5
testGetChosenMethodWhenPostShippingMethodIsNotNull()
S
67 1 7
testGetChosenMethodWhenPostShippingMethodIsNull()
S
72 1 5
testCalculateShippingAndGetOptionIdReturnsShippingRateIdStrippedOfPrefix()
S
64 1 9
testAreBlocksUsedInCheckoutAutomaticDetectionWithoutBlock()
S
71 1 6